<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>css3选择器</title>
    <style>
      p,
      h3,
      div {
        color: green;
      }
      div span {
        color: pink;
      }
      p.fs {
        font-style: italic;
      }
    </style>
  </head>

  <body>
    <div class="fs">
      我是div
      <p>我是div内部的p<span>我是span</span></p>
      <p>我是div内部的p<span>我是span</span></p>
    </div>
    <p class="fs">我是p<span>我是span</span></p>
    <p class="fs">我是p<span>我是span</span></p>
    <h3>我是h3</h3>
  </body>
</html>
